//
//  RCDEmptyView.h
//  SchoolHelper
//
//  Created by 任辰东 on 2018/3/29.
//  Copyright © 2018年 JSY. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, RCDEmptyViewStyle)
{
    
    EmptyViewStyleNoLogin,//未登录
    EmptyViewStyleCommon,//通用
    EmptyViewStyleClassPatrol,//巡课
    EmptyViewStyleComment,//评论
    EmptyViewStyleNetwork,//网络丢失
    EmptyViewStyleNoExamination,//暂无考试
    EmptyViewStyleNoAttentions,//暂无关注
    EmptyViewStyleRepair,//报修记录
    EmptyViewStyleDataCenter
    
};

typedef NS_ENUM(NSInteger, RCDEmptyViewPosition)
{
    EmptyViewPositionTop,
    EmptyViewPositionCenter,
    EmptyViewPositionBottom,
};

@interface RCDEmptyView : UIControl

/**
 *  创建一个带点击事件的emptyview，
 *
 *  @param style      样式
 *  @param parentView 父view，可以不传
 *  @param clickBlock 点击回调
 *
 *  @return emptyview
 */
+ (RCDEmptyView *)addEmptyWithStyle:(RCDEmptyViewStyle)style
                            onView:(UIView *)parentView
                          position:(RCDEmptyViewPosition)position
                     clickCallBack:(void (^)(void))clickBlock;

+ (void)removeFromParentView:(UIView *)parentView;

@end
